export default function parseAttrs (attrs = '') {
  const attrSet = attrs.split(' ')
  return attrSet.map(attr => {
    const [key, val] = attr.split('=')
    if (!val) return `${key}`
    return `${key}="${val}"`
  }).join(' ')
}